package com.jboost.modules.app.service.strategry.fhd;


import com.google.gson.JsonObject;
import com.jboost.modules.app.constant.BaseResult;
import com.jboost.modules.system.entity.FhdBom;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service(value = "FhdBomQuery")
@Slf4j
public class FhdBomQuery extends AbstractFhd<JsonObject, Boolean> {
    public String getAppId() {
        return "648df446b1562f0008efff79";
    }

    public String getFormId() {
        return "64c72976232263000704cf60";
    }

    @Async
    @Scheduled(cron = "0 0/3 * * * ?")
    public BaseResult<Boolean> invokeStrategy() throws Exception {
        sync(new FhdBom());
        return BaseResult.success();
    }
}
